package com.lifeservice.console.mapper;

import com.lifeservice.console.domain.LifeSchedule;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 排班Mapper接口
 *
 * @author lifeservice
 * @date 2023-02-27
 */
public interface LifeScheduleMapper {
    /**
     * 查询排班
     *
     * @param id 排班主键
     * @return 排班
     */
    public LifeSchedule selectLifeScheduleById(String id);

    /**
     * 查询排班列表
     *
     * @param lifeSchedule 排班
     * @return 排班集合
     */
    public List<LifeSchedule> selectLifeScheduleList(LifeSchedule lifeSchedule);

    /**
     * 新增排班
     *
     * @param lifeSchedule 排班
     * @return 结果
     */
    public int insertLifeSchedule(LifeSchedule lifeSchedule);

    /**
     * 批量新增排班
     *
     * @param list 入参
     * @return 条数
     */
    public int batchInsertLifeSchedule(@Param("item") List<LifeSchedule> list);

    /**
     * 修改排班
     *
     * @param lifeSchedule 排班
     * @return 结果
     */
    public int updateLifeSchedule(LifeSchedule lifeSchedule);

    /**
     * 删除排班
     *
     * @param id 排班主键
     * @return 结果
     */
    public int deleteLifeScheduleById(String id);

    public int deleteWorkClassByScheduleId(String id);

    /**
     * 批量删除排班
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLifeScheduleByIds(String[] ids);

    public int deleteLajiLifeSchedule();

    public int deleteLajiLifeWorkClass();
}
